from wtforms import Form, StringField, IntegerField
from wtforms.validators import Length, NumberRange


class SearchForm(Form):
    word = StringField(validators=[Length(1, 20)])
    page = IntegerField(validators=[NumberRange(1, 20)], default=1)
